/**   
 * @Title: C3P0Utils.java 
 * @Package cn.edu.cdtu.healthserver.utils 
 * @Description: C3P0数据库连接池 
 * @author 
 * @date 
 * @version V0.0   
 */
package cn.edu.cdtu.healthserver.utils;

import javax.sql.DataSource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

/** 
 * @ClassName: C3P0Util
 * @Description: C3P0数据库连接池构造类
 * @author 
 * @date  
 *  
 */
public class C3P0Util {

	/**
	 * 静态连接池
	 */
	private static ComboPooledDataSource dataSource = 
			new ComboPooledDataSource();
	
	/**
	 * 
	 * @Title: C3P0Util
	 * @Description: 私有化构造方法防止生成实例
	 * @throws 
	 *
	 */
	private C3P0Util(){
		
	}
	
	/**
	 * 
	 * @Title: getDataSource 
	 * @Description: 获取连接池的静态接口
	 * @return DataSource
	 * @throws 
	 *
	 * @return
	 */
	public static DataSource getDataSource() {
		return dataSource;
	}
}
